package com.ynet.middleground.user.bean;

import javax.validation.constraints.NotEmpty;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @description: 添加资源请求参数
 * @author: yangbh
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "添加资源请求参数", description = "添加资源请求参数")
public class AddTableResourceReq extends BaseReqObj {

    private static final long serialVersionUID = -9050631893489025623L;

    /**
     * 资源code，表名
     */
    @NotEmpty(message = "资源 code 不能为空")
    @ApiModelProperty(value = "资源 code（表名）", notes = "资源 code（表名）", dataType = "String", required = true)
    private String tableCode;

    /**
     * 资源名称
     */
    @NotEmpty(message = "资源名称不能为空")
    @ApiModelProperty(value = "资源名称", notes = "资源名称", dataType = "String", required = true)
    private String tableName;

    /**
     * 资源描述
     */
    @ApiModelProperty(value = "资源描述", notes = "资源描述", dataType = "String")
    private String tableDesc;

}
